/**
 * Created by XPL on 2017/4/14.
 */
angular.module('app').controller('mainCtrl', ['$http', '$scope', function ($http, $scope) {
    $http({
        method: 'GET',
        url: '/data/positionList.json'
    }).then(function (res) { //successCallback
        $scope.list = res.data;
    }, function (res) {  //errorCallback
        console.log(res);
    });

}]);